<?php

include 'functions.php';
$db=db_connect();
$sid=$_GET['schueler_id'];

if(isset($_POST['form'])){
	$klasse=$_POST['klasse'];
	$name=$_POST['name'];	
	$vorname=$_POST['vorname'];	
	
	$update="UPDATE  `rapidbook`.`schueler` SET  `klasse` =  '".$klasse."', `name` =  '".$name."',
`vorname` =  '".$vorname."' WHERE  `schueler`.`schueler_id` =".$sid.";";
	mysql_query($update,$db);
}

$query = "SELECT * FROM  `schueler` WHERE  `schueler_id` =".$sid;



$result=mysql_query($query,$db);

$row=mysql_fetch_assoc($result);



include 'schuelerdetails_tmp.php';
	
mysql_close($db);

?>